home *** CD-ROM | disk | FTP | other *** search
/ Workbench Add-On / Workbench Add-On - Volume 1.iso / BBS-Archive / Comm / AmiTCP30b2.lha / netinclude / netinet / udp.h < prev   
C/C++ Source or Header  |  1993-08-01  |  3KB  |  68 lines

  1. /*
  2.  * $Id: udp.h,v 1.2 1993/03/03 20:55:53 jraja Exp $
  3.  *
  4.  * HISTORY
  5.  * $Log: udp.h,v $
  6.  * Revision 1.2  1993/03/03  20:55:53  jraja
  7.  * Added #ifdef to prevent multiple inclusion.
  8.  *
  9.  * Revision 1.2  1993/03/03  20:55:53  jraja
  10.  * Added #ifdef to prevent multiple inclusion.
  11.  *
  12.  * Revision 1.1  92/11/17  16:31:27  16:31:27  jraja (Jarno Tapio Rajahalme)
  13.  * Initial revision
  14.  * 
  15.  *
  16.  */
  17.  
  18. /*
  19.  * Copyright (c) 1982, 1986 Regents of the University of California.
  20.  * All rights reserved.
  21.  *
  22.  * Redistribution and use in source and binary forms, with or without
  23.  * modification, are permitted provided that the following conditions
  24.  * are met:
  25.  * 1. Redistributions of source code must retain the above copyright
  26.  *    notice, this list of conditions and the following disclaimer.
  27.  * 2. Redistributions in binary form must reproduce the above copyright
  28.  *    notice, this list of conditions and the following disclaimer in the
  29.  *    documentation and/or other materials provided with the distribution.
  30.  * 3. All advertising materials mentioning features or use of this software
  31.  *    must display the following acknowledgement:
  32.  *    This product includes software developed by the University of
  33.  *    California, Berkeley and its contributors.
  34.  * 4. Neither the name of the University nor the names of its contributors
  35.  *    may be used to endorse or promote products derived from this software
  36.  *    without specific prior written permission.
  37.  *
  38.  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  39.  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  40.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  41.  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  42.  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  43.  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  44.  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  45.  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  46.  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  47.  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  48.  * SUCH DAMAGE.
  49.  *
  50.  *    @(#)udp.h    7.4 (Berkeley) 6/28/90
  51.  */
  52.  
  53. #ifndef UDP_H
  54. #define UDP_H
  55.  
  56. /*
  57.  * Udp protocol header.
  58.  * Per RFC 768, September, 1981.
  59.  */
  60. struct udphdr {
  61.     u_short    uh_sport;        /* source port */
  62.     u_short    uh_dport;        /* destination port */
  63.     short    uh_ulen;        /* udp length */
  64.     u_short    uh_sum;            /* udp checksum */
  65. };
  66.  
  67. #endif /* !UDP_H */
  68.